package com.photoeditor.demo.ui.widget.image.hair;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;


public class DrawOperation implements IDrawOperation {

    private Path mPath;

    private Paint mPaint;

    public DrawOperation(Path path, Paint paint) {
        mPath = path;
        mPaint = paint;
    }

    @Override
    public void operation(Canvas canvas) {
        if (mPath != null && mPaint != null) {
            canvas.drawPath(mPath, mPaint);
        }
    }
}
